<%@ page language="Java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>测试errors标签</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
</head>
<body>
	<h3>注册页面</h3>  
<form:form modelAttribute="user" action="register" >  
    <table>  
        <tr>  
            <td>姓名:</td>  
            <td><form:input path="username"/></td>  
            <td><font color="red"><form:errors path="username"/></font></td>  
        </tr>  
        <tr>  
            <td>性别:</td>  
            <td><form:input path="sex"/></td>  
            <td><font color="red"><form:errors path="sex"/></font></td>  
        </tr>  
        <tr>  
            <td>年龄:</td>  
            <td><form:input path="age"/></td>  
            <td><font color="red"><form:errors path="age"/></font></td>  
        </tr>  
        <tr>    
            <td><input type="submit" value="注册"/></td>    
        </tr>    
    </table>  
</form:form>  
</body>
</html>